package com.letoken.platform.repo.mall.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户加速卡配置
 * </p>
 *
 * @author 作者
 * @since 2023-06-19
 */
@Getter
@Setter
@TableName("app_mall_card_info")
@ApiModel(value = "AppMallCardInfo对象", description = "用户加速卡配置")
public class AppMallCardInfo extends Model<AppMallCardInfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("1.可使用 2.已使用 3.已过期")
    @TableField("state")
    private Integer state;

    @ApiModelProperty("期限")
    @TableField("deadline")
    private Integer deadline;

    @TableField("create_time")
    private LocalDateTime createTime;
    @TableField("expired_time")
    private LocalDateTime expiredTime;


    @TableField("acceleration")
    private Integer acceleration;
    @TableField("type")
    private Integer type;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
